﻿<BootstrapInput TValue="DateTime" Value="DateTime.Now" FormatString="yyyy-MM-dd" IsDisabled="true" />
<BootstrapInput TValue="DateTime" Value="DateTime.Now" Formatter="@DateTimeFormatter" IsDisabled="true" />
<BootstrapInput TValue="byte[]" Value="@ByteArray" Formatter="@ByteArrayFormatter" IsDisabled="true" />
@code {
    private string DateTimeFormatter(DateTime source) => source.ToString("yyyy-MM-dd");

    private byte[] ByteArray { get; set; } = new byte[] { 0x01, 0x12, 0x34, 0x56 };

    private string ByteArrayFormatter(byte[] source) => Convert.ToBase64String(source);
}
